package com.origin.src.scan.resource;

import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;

import java.io.IOException;

public class XResourcePatternResolver {
    public static void main(String[] args) throws IOException {
        PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
        Resource[] resources = resolver.getResources("classpath*:**/*.properties");
        for (Resource resource : resources) {
            System.out.println(resource.getFilename());
        }
    }
}
